package com.laolei.eureka.zuul.config;

import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

import com.netflix.zuul.ZuulFilter;

@EnableZuulProxy
@SpringCloudApplication
public class SpringEurekaZuulConfigApplication {

	public static void main(String[] args) {
		SpringApplication.run(SpringEurekaZuulConfigApplication.class, args);
	}
	
	@Bean ZuulFilter zuulFilter(){
		return new PreFilter();
	}
}
